package com.jjz.id.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @DESC
 * @AUTHOR ZJL
 * @DATETIME 2025/5/30 10:04
 **/
@Configuration(proxyBeanMethods = false)
public class UserDetailsConfiguration {
    @Bean
    UserDetailsService notFoundUserDetailsService() {
        return (username) -> {
            throw new UsernameNotFoundException("用户未找到");
        };
    }
}
